#!/usr/bin/env lua

module("deldir", package.seeall)
local lfs = require("lfs")
local homepath = "/usr/local/moochine-demo/file/"
function main(req, resp,path)
	resp.headers['Content-Type'] = 'application/json'
	local res,err = lfs.rmdir(homepath .. path)
	 if not res then
	   resp:writeln(err)
	 end
end